﻿<%@ Page Language="C#" Theme="skin_control" AutoEventWireup="true" MaintainScrollPositionOnPostback="true"
    CodeFile="QuarterPlanDisplay.aspx.cs" Inherits="QuarterPlan_QuarterPlanDisplay" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>年计划投影</title>
    <link href="../App_Themes/css/main_css.css" rel="stylesheet" type="text/css" />
    <script src="../Js/Page_Validate.js" type="text/javascript"></script>
    <link href="../App_Themes/css/display.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript">
        <!--
        function department(str) {
            window.open('../WebCommon/Department.aspx?SID=' + str, 'quarterPlanDisplay', 'width=700,height=580,top=200, left=300');
        }
        -->
    </script>
    <style type="text/css">
        /*标黑投影显示的表格线*/
        td
        {
            border-width: 1px;
            border-color: Black;
        }
        th
        {
            border-width: 1px;
            border-color: Black;
        }
        table
        {
            border-color: Black;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div>
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <table border="0" cellpadding="0" cellspacing="0" width="100%" style="height: 740">
                <tr>
                    <td align="center" style="width: 100%; text-align: left; height: 26px;">
                        <asp:DropDownList ID="drpDepartment" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpDepartment_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:Button ID="btnflow" runat="server" OnClick="btnflow_Click" BorderColor="Transparent"
                            BorderWidth="1px" BackColor="Transparent" Text="流程" /><asp:Button ID="btnModify"
                                runat="server" OnClick="btnModify_Click" BorderColor="Transparent" BorderWidth="1px"
                                BackColor="Transparent" Text="修改" /><asp:Button ID="btnAdd" runat="server" Text="添加"
                                    OnClick="btnAdd_Click" BorderColor="Transparent" BorderWidth="1px" BackColor="Transparent" /><asp:Button
                                        ID="btnDel" runat="server" OnClick="btnDel_Click" Text="删除" BorderColor="Transparent"
                                        BorderWidth="1px" BackColor="Transparent" OnClientClick="return confirm('确认要删除吗？')" /><asp:Button
                                            ID="btnModifyEvaluate" runat="server" OnClick="btnModifyEvaluate_Click" Text="修改评估"
                                            BorderColor="Transparent" BorderWidth="1px" BackColor="Transparent" Width="60px" /><asp:Button
                                                ID="btnCancelEvalation" runat="server" BackColor="Transparent" BorderColor="Transparent"
                                                BorderWidth="1px" OnClick="btnCancelEvalation_Click" Text="取消评估" Width="60px" /><asp:Button
                                                    ID="btnOutToExcel" runat="server" BackColor="Transparent" BorderColor="Transparent"
                                                    BorderWidth="1px" OnClick="btnOutToExcel_Click" Text="导出Excel" Width="65px" />年份:<asp:DropDownList
                                                        ID="drpYear" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpYear_SelectedIndexChanged"
                                                        SkinID="dropdownlistSkin">
                                                    </asp:DropDownList>
                        年周期:<asp:DropDownList ID="drpQuarterDate" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpQuarterDate_SelectedIndexChanged"
                            SkinID="dropdownlistSkin">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td style="width: 100%;">
                        <asp:GridView ID="gvlist" runat="server" AutoGenerateColumns="False" DataKeyNames="QuarterPlanId,PlanSendState,NoCompleteCount"
                            Width="100%">
                            <Columns>
                                <asp:TemplateField HeaderText="选择">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="ckbSelect" runat="server" SkinID="checkboxSkin" />
                                    </ItemTemplate>
                                    <ItemStyle Width="44px" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <HeaderStyle Width="44px" HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="QuarterPlanSortId" HeaderText="计划编号">
                                    <ItemStyle Width="44px" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <HeaderStyle Width="44px" HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="WorkItem" HeaderText="计划名称">
                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="135px" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="135px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="StartTime" DataFormatString="{0:yyyy-MM-dd}" HeaderText="开始时间"
                                    HtmlEncode="False">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="CompleteTime" HeaderText="完成时间" DataFormatString="{0:yyyy-MM-dd}"
                                    HtmlEncode="False">
                                    <ItemStyle Width="95px" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <HeaderStyle Width="95px" HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="MasterPeople" HeaderText="责任人">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="70px" Wrap="True" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="70px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="SlaveDepartment" HeaderText="配合部门">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" Wrap="True" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="SlaveDepartmentDuty" HeaderText="配合部门责任">
                                    <ItemStyle Width="120px" HorizontalAlign="Left" VerticalAlign="Middle" />
                                    <HeaderStyle Width="120px" HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="EvaluatePeople" HeaderText="评估人">
                                    <ItemStyle Width="60px" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <HeaderStyle Width="60px" HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="VerifyPeopleOpinion" HeaderText="审核意见">
                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="90px" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="90px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="CheckNote" HeaderText="评估意见">
                                    <ItemStyle Width="85px" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <HeaderStyle Width="85px" HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Remart" HeaderText="备注" Visible="False">
                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="100px" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="查看">
                                    <ItemTemplate>
                                        <asp:Button ID="btnQuarterPlanResolve" runat="server" OnClick="btnQuarterPlanResolve_Click"
                                            BorderWidth="1px" BackColor="Transparent" BorderColor="Transparent" Text="查看分解"
                                            Width="80px" Font-Size="13pt" Height="25px" /><asp:Label ID="lblTopic" runat="server"
                                                SkinID="labelSkin" Text="无年分解" Visible="False"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="0px" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="0px" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="QuarterPlanId" HeaderText="id" Visible="False" />
                                <asp:BoundField DataField="PlanSendState" HeaderText="PlanSendState" Visible="False" />
                                <asp:BoundField DataField="NoCompleteCount" HeaderText="NoCompleteCount" Visible="False" />
                            </Columns>
                            <HeaderStyle BackColor="#DFDEDC" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table cellpadding="0" cellspacing="1" border="0" style="background-color: Black;
                            height: 100px" width="100%">
                            <tr style="background-color: #DFDEDC">
                                <td style="width: 818px; text-align: center;">
                                    上年工作总结<asp:HiddenField runat="server" ID="HPreAttachmentPath" />
                                    <asp:HiddenField runat="server" ID="HQuarterSummaryId" />
                                    字数：<label id="prelength" runat="server">0</label>
                                </td>
                                <td style="width: 85px; text-align: center;">
                                    操作
                                </td>
                                <td style="width: 68px; text-align: center;">
                                    附件
                                </td>
                            </tr>
                            <tr style="background-color: White">
                                <td style="width: 818px; text-align: left; height: 80px;">
                                    <asp:TextBox runat="server" ID="txtPreQuarterSummary" Font-Size="13pt" TextMode="MultiLine"
                                        Width="100%" onkeyup="calculateLength(this,'prelength');" Height="160px" 
                                        Font-Names="微软雅黑"></asp:TextBox>
                                    <%--   <asp:Label runat="server" ID="lblPreQuarterSummary" Visible="true"></asp:Label>--%>
                                </td>
                                <td style="width: 100px; text-align: center;">
                                    <asp:Button ID="btnAddPreQuarterSummary" runat="server" Text="添加" Font-Size="13pt"
                                         OnClick="btnAddPreQuarterSummary_Click" />
                                    <asp:Button runat="server" ID="btnSavePreQuarterSummary" Text="保存" Font-Size="13pt"
                                        Visible="false"   OnClick="btnSavePreQuarterSummary_Click" />
                                </td>
                                <td style="width: 100px; text-align: center;">
                                    <asp:Button ID="btnUploadPreQuarterSummary"  runat="server" Font-Size="13pt"
                                        Text="上传"   OnClick="btnUpload_Click" />
                                    <asp:Button ID="btnDownPreQuarter" runat="server" Text="下载" Font-Size="13pt"  
                                        OnClick="btnDownQuarterSummary_Click" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table cellpadding="0" cellspacing="1" border="0" style="background-color: Black;
                            height: 100px" width="100%">
                            <tr style="background-color: #DFDEDC">
                                <td style="width: 818px; text-align: center;">
                                    本年工作部署
                                    <asp:HiddenField runat="server" ID="HAttachmentPath" />
                                    字数：<label id="thelength" runat="server">0</label>
                                </td>
                                <td style="width: 100px; text-align: center;">
                                    操作
                                </td>
                                <td style="width: 100px; text-align: center;">
                                    附件
                                </td>
                            </tr>
                            <tr style="background-color: White;">
                                <td style="width: 818px; text-align: left; height: 80px;">
                                    <asp:TextBox runat="server" ID="txtQuarterSummary" Font-Size="13pt" TextMode="MultiLine"
                                        Width="99.8%" onkeyup="calculateLength(this,'thelength');" Height="160px" 
                                        Font-Names="微软雅黑"></asp:TextBox>
                                    <%-- <asp:Label runat="server" ID="lblQuarterSummary" Visible="true"></asp:Label>--%>
                                </td>
                                <td style="width: 100px; text-align: center;">
                                    <asp:Button ID="btnAddQuarterSummary" runat="server" Text="添加"  
                                        Font-Size="13pt" OnClick="btnAddQuarterSummary_Click" /><asp:Button runat="server"
                                            Font-Size="13pt" Text="保存" Visible="false"   OnClick="btnSavePreQuarterSummary_Click"
                                            ID="btnSaveQuarterSummary" />
                                </td>
                                <td style="width: 100px; text-align: center;">
                                    <asp:Button ID="btnUploadQuarterSummary"   runat="server" Font-Size="13pt"
                                        Text="上传"   OnClick="btnUpload_Click" />
                                    <asp:Button ID="btnDownQuarterSummary" runat="server" Text="下载" Font-Size="13pt"
                                         OnClick="btnDownQuarterSummary_Click" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <asp:GridView ID="gdvQuarterResolve" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                            OnPageIndexChanging="gvlist_PageIndexChanging" SkinID="gridviewSkin" Width="100%">
                            <Columns>
                                <asp:BoundField DataField="QuarterDetailPlanId" HeaderText="计划编号" />
                                <asp:BoundField DataField="StartTime" HeaderText="起始时间" />
                                <asp:BoundField DataField="CompleteTime" HeaderText="完成时间" />
                                <asp:BoundField DataField="WorkItem" HeaderText="计划名称" />
                                <asp:BoundField DataField="MasterDepartment" HeaderText="责任部门" />
                                <asp:BoundField DataField="MasterPeople" HeaderText="责任人" />
                                <asp:BoundField DataField="SlaveDepartment" HeaderText="关联/配合部门" />
                                <asp:BoundField DataField="SlaveDepartmentDuty" HeaderText="配合部门责任" />
                                <asp:BoundField DataField="EvaluatePeople" HeaderText="评估人" />
                                <asp:BoundField DataField="Remart" HeaderText="备注" Visible="False" />
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
